package com.heima.feign.wemedia;


import com.heima.model.comment.dtos.ScanCommentContentDto;
import com.heima.model.common.dtos.ResponseResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("leadnews-wemedia")
public interface IWemediaClient {


    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();

    /**
     * 远程调用，进行评论内容的审核
     * @return
     */
    @PostMapping("/api/v1/comment/scan")
    public Boolean commentScan(@RequestBody ScanCommentContentDto contentDto);

}